module.exports={
    configureWebpack: {
        devServer:{
            before(app){
                app.get('/api/lessons',(req,res)=>{
                    res.json({
                        lessonList: [
                            {
                                name: '平板电视',
                                price: '10000',
                            },
                            {
                                name: '手机XX',
                                price: '8000',
                            },
                            {
                                name: '音箱',
                                price: '1000',
                            },
                            {
                                name: '电池',
                                price: '1000',
                            },
                        ]
                    })
                })
            }
        }
    }
};